package service.impl;

import entity.Book;
import repository.BookRepository;
import repository.impl.BookRepositoryImpl;
import service.BookService;

import java.sql.SQLException;
import java.util.List;

public class BookServiceImpl implements BookService {
 private BookRepository bookRepository=new BookRepositoryImpl();
    @Override
    public List<Book> findAll() throws SQLException, ClassNotFoundException {
        return bookRepository.findAll();
    }
}
